import type { OrderDetail } from "@/types/consult"
import type { RateParams } from "@/types/room"
import request from "@/utils/request"

/**
 * 问诊订单详情
 */
export const getOrderDetailAPI = (orderId: string) => {
  return request.get<null, OrderDetail>('/patient/consult/order/detail', { params: { orderId } })
}


/**
 * 评价医生
 */
export const evaluateDoctorAPI = (data:RateParams) => {
  return request.post('/patient/order/evaluate', data)
}